#pragma once

#include "logcplus_lockutil.h"
#include "logcplus_fileutil.h"

#include "logcplus_debug_util.h"

namespace logcplus
{
    class logcplus_lock
    {			
    public:	
        static Pthread_mutex_lock m_slock;
        static int  construct( std::string& loggerName, Pthread_mutex_lock* pLock = nullptr, bool option = false);	
        static int  destructor(std::string& loggerName, Pthread_mutex_lock* pLock = nullptr, bool option = false);
        static void removeAllLockFile();	
    };
}

#define LOGCPLUS_REMOVE_ALL_LOCKFILE() logcplus_lock::removeAllLockFile();